tar xf ${DOWNLOADDIR}/gcc-15.2.0.tar.xz -C ${BUILDDIR}
pushd ${BUILDDIR}/gcc-15.2.0
	sed -i 's@\./fixinc\.sh@-c true@' gcc/Makefile.in
	mkdir cross-build
	pushd cross-build
		../configure --prefix=/usr --libdir=/usr/lib64 --build=${CROSS_HOST} \
		             --host=${CROSS_TARGET} --target=${CROSS_TARGET} \
		             --enable-__cxa_atexit --enable-threads=posix \
		             --with-system-zlib --enable-libstdcxx-time \
		             --enable-checking=release \
		             --with-build-sysroot=${SYSDIR}/sysroot \
		             --enable-default-pie \
		             --enable-languages=c,c++,fortran,objc,obj-c++,lto
		make ${JOBS}
		make DESTDIR=${SYSDIR}/sysroot install
		ln -sv /usr/bin/cpp ${SYSDIR}/sysroot/lib
		ln -sv gcc ${SYSDIR}/sysroot/usr/bin/cc
	popd
popd
